package app.services.impl;

import java.util.List;

import app.models.Convenio;
import app.repositories.ConvenioRepository;
import app.repositories.Repository;
import app.services.ConvenioService;
import br.com.caelum.vraptor.ioc.Component;

@Component
public class ConvenioServiceImpl extends GenericServiceImpl<Convenio, Long> implements ConvenioService{

	private final ConvenioRepository repository;
	
	public ConvenioServiceImpl(ConvenioRepository repository){
		this.repository = repository;
		super.setGenericRepository((Repository<Convenio, Long>) repository);
	}
	
	public List<Convenio> findLastConvenios(){
		return repository.findLastConvenios();
	}
	
}
